import type { ProfileDetail, ProfileParams } from '@/types/profile'
import { http } from '@/utils/http'

/* 会员中心-个人信息
获取个人信息 */
export const getMemberProfileAPI = () => {
  return http<ProfileDetail>({
    url: '/member/profile',
    method: 'GET',
  })
}

/* 会员中心-个人信息
修改个人信息 */
export const PutmemberProfileAPI = (data: ProfileParams) => {
  return http<ProfileDetail>({
    url: '/member/profile',
    method: 'PUT',
    data,
  })
}
